package com.thymeleaf.demo.painter;

/**
 * 圆圈
 *
 * @Author wang suo
 * @Date 2020/9/29 0029 20:26
 * @Version 1.0
 */
public class Circle implements Shape {

    private Double radius;

    @Override
    public Double getArea() {
        return 3.14 * radius * radius;
    }

    @Override
    public Double getPerimeter() {
        // 计算周长并返回
        return null;
    }
}
